
<form id="form_edit">
<table>
	<tr>
		<td align="right">员工：</td>
		<td><input type="text" name="emp" id="emp" size="12" value="{[$result.emp]}:{[$result.emp_t]}" title="{[$t.emp_|emp:'员工']}">
		<input type="checkbox" name="t_emp" id="t_emp" value="{[$smarty.session.id]}:{[$smarty.session.name]}"> 自己</td>
	</tr>
	<tr>
		<td align="right">事由：</td>
		<td><textarea rows="2" name="name" cols="55">{[$result.name]}</textarea></td>
	</tr>
	<tr>
		<td align="right">类型：</td>
		<td><select name='overtime'>
			{[html_options options=$overtime_option selected=$result.overtime]}
		</select></td>
	</tr>
	<tr>
		<td width="20%" align="right">上班时间：</td>
		<td width="80%"><input type="text" name="date1" id="date1" size="12" value="{[$result.t1|date_format:'%Y-%m-%d']}"> <input
			type="text" name="time1" id="time1" size="8" value="{[$result.t1|date_format:'%H:%M']}"> <select name='time_t'
			id='time_t'>
			{[html_options options=$time_option selected=-]}
		</select></td>
	</tr>
	<tr>
		<td align="right">下班时间：</td>
		<td><input type="text" name="date2" id="date2" size="12" value="{[$result.t2|date_format:'%Y-%m-%d']}"> <input
			type="text" name="time2" id="time2" size="8" value="{[$result.t2|date_format:'%H:%M']}"></td>
	</tr>
	<tr>
		<td align="right">备注：</td>
		<td><textarea rows="4" name="content" cols="55">{[$result.content]}</textarea></td>
	</tr>
</table>
</form>

<script type="text/javascript" src="js/kq/overtime/add.js?r={[$smarty.now]}"></script>
<script type="text/javascript" src="js/kq/time.js?r={[$smarty.now]}"></script>
